package com.xiaoshuidi.cloud.module.rooms.framework.utils;

import com.xiaoshuidi.cloud.module.rooms.pojo.RoomHouse;

public class RoomHouseUtil {

    public static String getHouseFullName(RoomHouse roomHouse){
        StringBuilder sb = new StringBuilder();
        sb.append(roomHouse.getArea());
        sb.append(roomHouse.getBuildingNo());
        sb.append("栋");
        if(!roomHouse.getIsConcentrated()){
            sb.append(roomHouse.getUnitNo());
            sb.append("单元");
        }
        sb.append(roomHouse.getName());
        return sb.toString();
    };
}
